<script>
	import {
		mapState,
		mapGetters,
		mapActions,
		mapMutations
	} from 'vuex'
	export default {
		created() {
			// 控制是否可以刷新同城组局页面
			this.setIsShow(true)

			// 获取客服链接
			this.getServiceUrl()
		},

		onLaunch: function() {
			this.setIsWeChat()

			// 隐藏tabBar
			uni.hideTabBar()
		},

		onShow: function() {
			console.log('App Show')

		},
		onHide: function() {
			// 一旦离开应用,就不要刷新了
			this.setIsShow(false)
			console.log('App Hide')
		},
		methods: {
			...mapMutations(['setIsWeChat', 'setTabCurrent', 'setIsShow']),
			...mapActions(['getServiceUrl']),


			
			
			
		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";


	@import "@/static/css/quill.core.css";
	@import "@/static/css/quill.bubble.css";
	@import "@/static/css/quill.snow.css";
	@import "@/static/font/font.css";

	@import "@/static/font/iconfont.css";

	.uni-modal {
		.uni-modal__hd {
			padding: 40rpx;
		}

		.uni-modal__bd {
			font-size: 32rpx;
			font-weight: bold;
			padding: 0;
			min-height: auto;
		}

		.uni-modal__title {
			font-size: 32rpx !important;
		}

		.uni-modal__btn {
			font-size: 28rpx;
		}
	}

	uni-tabbar {
		.uni-tabbar {
			border-radius: 40rpx 40rpx 0 0;
		}

		.uni-tabbar__bd {
			// display: flex;
			// flex-direction: row;

			.uni-tabbar__icon {
				margin: 0;
			}

			.uni-tabbar__label {
				margin-top: 0;
				margin-left: 8rpx;
			}
		}
	}

	/*每个页面公共css */
</style>